package com.ruoyi.pms.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 pms_product
 * 
 * @author zouhuu
 * @date 2021-07-20
 */
public class PmsProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 品牌ID */
    private Long brandId;

    /** 分类ID */
    private Long categoryId;

    /** 属性分类ID */
    private Long attributeCategoryId;

    /** 供货商ID */
    private Long supplierId;

    /** 商户ID */
    private Long merId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 副名称 */
    private String subName;

    /** 关键字 */
    private String keywords;

    /** 简介 */
    private String brief;

    /** 图片 */
    private String pic;

    /** 轮播图 */
    private String pics;

    /** 价格 */
    private BigDecimal price;

    /** 市场价 */
    private BigDecimal priceMarket;

    /** 成本价 */
    private BigDecimal priceCost;

    /** 销量 */
    private Long sale;

    /** 库存 */
    private Long stock;

    /** 库存预警值 */
    private Long lowStock;

    /** 单位 */
    private String unit;

    /** 详情 */
    private String detail;

    /** 标签 */
    private String tags;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brandName;

    /** 是否推荐(0不 1推荐) */
    @Excel(name = "是否推荐(0不 1推荐)")
    private Integer isRecommend;

    /** 是否上架(0下架, 1上架) */
    @Excel(name = "是否上架(0下架, 1上架)")
    private Integer isPublish;

    /** 是否删除(0正常1删除) */
    private Integer isDel;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态(0正常1停用) */
    @Excel(name = "状态(0正常1停用)")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setAttributeCategoryId(Long attributeCategoryId) 
    {
        this.attributeCategoryId = attributeCategoryId;
    }

    public Long getAttributeCategoryId() 
    {
        return attributeCategoryId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setMerId(Long merId) 
    {
        this.merId = merId;
    }

    public Long getMerId() 
    {
        return merId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSubName(String subName) 
    {
        this.subName = subName;
    }

    public String getSubName() 
    {
        return subName;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setBrief(String brief) 
    {
        this.brief = brief;
    }

    public String getBrief() 
    {
        return brief;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setPics(String pics) 
    {
        this.pics = pics;
    }

    public String getPics() 
    {
        return pics;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPriceMarket(BigDecimal priceMarket) 
    {
        this.priceMarket = priceMarket;
    }

    public BigDecimal getPriceMarket() 
    {
        return priceMarket;
    }
    public void setPriceCost(BigDecimal priceCost) 
    {
        this.priceCost = priceCost;
    }

    public BigDecimal getPriceCost() 
    {
        return priceCost;
    }
    public void setSale(Long sale) 
    {
        this.sale = sale;
    }

    public Long getSale() 
    {
        return sale;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setLowStock(Long lowStock) 
    {
        this.lowStock = lowStock;
    }

    public Long getLowStock() 
    {
        return lowStock;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }
    public void setIsRecommend(Integer isRecommend) 
    {
        this.isRecommend = isRecommend;
    }

    public Integer getIsRecommend() 
    {
        return isRecommend;
    }
    public void setIsPublish(Integer isPublish) 
    {
        this.isPublish = isPublish;
    }

    public Integer getIsPublish() 
    {
        return isPublish;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brandId", getBrandId())
            .append("categoryId", getCategoryId())
            .append("attributeCategoryId", getAttributeCategoryId())
            .append("supplierId", getSupplierId())
            .append("merId", getMerId())
            .append("name", getName())
            .append("subName", getSubName())
            .append("keywords", getKeywords())
            .append("brief", getBrief())
            .append("pic", getPic())
            .append("pics", getPics())
            .append("price", getPrice())
            .append("priceMarket", getPriceMarket())
            .append("priceCost", getPriceCost())
            .append("sale", getSale())
            .append("stock", getStock())
            .append("lowStock", getLowStock())
            .append("unit", getUnit())
            .append("detail", getDetail())
            .append("tags", getTags())
            .append("categoryName", getCategoryName())
            .append("brandName", getBrandName())
            .append("isRecommend", getIsRecommend())
            .append("isPublish", getIsPublish())
            .append("isDel", getIsDel())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
